package lv.solcraft.replication.server.bdb;

import com.sleepycat.je.Transaction;

public abstract class TxTemplateNoResult extends TxTemplate<Void> {

    public TxTemplateNoResult(Database database) {
        super(database);
    }
    
    public TxTemplateNoResult(Database database, int maxRetries) {
		super(database, maxRetries);
	}

	public Void execute() {
        super.execute();
        return null;
    }

    @Override
    protected final Void executeInTx(Transaction tx) throws Exception {
        executeInTxNoResult(tx);
        return null;
    }

    abstract protected void executeInTxNoResult(Transaction tx) throws Exception;
}
